import request from "../utils/request";
import baseUrl from "../utils/baseUrl";

export function login(data) { //登录
  var url = baseUrl.public + "public/login";
  return request({
    url,
    method: 'post',
    data,
  })
}

export function register(data) { //注册
  var url = baseUrl.public + "public/register";
  return request({
    url,
    method: 'post',
    data,
  })
}
